package org.wlw.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.wlw.dao.IUserDao;
import org.wlw.models.User;
import org.wlw.service.IUserService;

import java.util.List;

@Service
public class UserProxyService implements IUserService {
    @Autowired
    private IUserService userService;

    @Override
    public void add(User user) {
        System.out.println("权限控制");
        userService.add(user);
        System.out.println("日志处理");
    }

    @Override
    public void delete(int id) {

    }

    @Override
    public void update(User user) {

    }

    @Override
    public User load(int id) {
        return null;
    }

    @Override
    public List<User> list() {
        return null;
    }
}
